home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Development / Source / Macintosh Tracker Source / Tracker Client Folder / Core 18⁄March⁄1994 / WatchCursor.h < prev   
Encoding:
C/C++ Source or Header  |  1993-05-24  |  638 b   |  26 lines  |  [TEXT/KAHL]

  1. /* WatchCursor.h */
  2.  
  3. #pragma once
  4.  
  5. #define CursorStepDelay (60)
  6. #define NumWatchCursors (8)
  7.  
  8. #ifndef COMPILING_WATCHCURSOR_C
  9.     extern Cursor        WatchCursorTable[NumWatchCursors];
  10.     extern ushort        WatchCursorIndex;
  11.     extern ulong        LastWatchCursorInc;
  12. #endif
  13.  
  14. void        StartTimeConsumingOperation(void);
  15. void        EndTimeConsumingOperation(void);
  16. #define CheckCursor(crap) if (TickCount()-LastWatchCursorInc > CursorStepDelay)\
  17.     {\
  18.         SetCursor(&(WatchCursorTable[WatchCursorIndex]));\
  19.         WatchCursorIndex = WatchCursorIndex + 1;\
  20.         if (WatchCursorIndex >= NumWatchCursors)\
  21.             {\
  22.                 WatchCursorIndex = 0;\
  23.             }\
  24.         LastWatchCursorInc = TickCount();\
  25.     }
  26.